<?php
/**
 * Created by PhpStorm.
 * User: liangtiehui
 * Date: 2016/1/11
 * Time: 21:05
 */

namespace Factory;

/**
 *  具体工厂角色B
 * Class ConcreteCreatorB
 * @package Factory
 */
class ConcreteCreatorB implements Creator
{
    /**
     * 工厂方法 返回 具体产品B
     */
    public function factoryMethod()
    {
        return new ConcreteProductB();
    }
}